package com.example.win.android_banduyujia.http.request;

import com.example.win.android_banduyujia.http.UrlContext;

import java.util.Map;

/**
 * Created by Win on 2015/10/13.
 */
public class SavePayRequest extends BaseHttpRequest {
    public static final String URL = UrlContext.Url_APPlyBind.getContext();

    private String  token;
    private String  alipay;
    private String  realname;
    private String  account;

    public SavePayRequest(String mToken, String mCode, String mRealname, String mAccount) {
         this.token = mToken;
         this.alipay = mCode;
         this.realname = mRealname;
         this.account = mAccount;
    }

    protected String toRequestURL() {
        return URL;
    }

    @Override
    protected String toHttpMethod() {
        return HTTP_METHOD_POST;
    }

    @Override
    protected void toHttpRequestParams(Map<String, String> params) {
        params.put("token", token);
        params.put("cash_code", alipay);
        params.put("realname", realname);
        params.put("account", account);
    }
}
